home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Magazine / Online / QMail / docs / Antispam patch < prev    next >
Encoding:
Text File  |  1997-10-08  |  3.0 KB  |  78 lines

  1. The antispam patch included adds some features qmail's SMTP daemon:
  2.  
  3.                                   Logging.
  4.                                   ¯¯¯¯¯¯¯¯
  5.  
  6. Logs "out of memory" situations.
  7. Logs connection timeouts.
  8. Logs unauthorised relaying attempts.
  9. Logs rejected addresses.
  10. Logs SMTP clients which claim to be someone else.
  11.  
  12.  
  13.                          Envelope address filtering.
  14.                          ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  15.  
  16. qmail-smtpd will read the DENYMAIL environment variable to determine how to
  17. handle sender addresses:
  18.  
  19. DENYMAIL set to anything
  20. The address will be rejected if
  21.  - it doesn't contain a '@'.
  22.  - it contains a bang path without a host name ("user!@domain").
  23.  - the domain part has no '.' in it.
  24.  - the top level domain has fewer than 2 or more than 3 characters in it.
  25.  
  26. DENYMAIL set to DNSCHECK
  27. The address will be rejected if
  28.  - there are no MX or A records in the DNS for the domain part (= you can't
  29.    send a reply). Note that in case of temporary DNS errors, the address will
  30.    be rejected with a temporary error code so the remote MTA will try again
  31.    later.
  32.  
  33. DENYMAIL set to NOBOUNCE
  34. Bounces (envelope sender empty or "#@[]") will be rejected.
  35.  
  36. DENYMAIL set to SPAM
  37. All addresses will be rejected.
  38.  
  39. The patch extends the syntax of control/badmailfrom. In addition to the
  40.  
  41.    user@domain
  42.    @domain
  43.  
  44. syntax, you can also use
  45.  
  46.    user@
  47.  
  48. to reject all sender addresses witha user part of "user".
  49.  
  50. The patch allows the use of a new control file, control/badrcptto. This file
  51. lists recipient addresses that should be rejected. You can use
  52.  
  53.    user@domain
  54.  
  55. and
  56.  
  57.    @domain
  58.  
  59. to specify invalid addresses. This can be useful if a spammer sends lots of
  60. messages to a nonexistant user from an invalid address, as otherwise,
  61. postmaster will get lots of double bounces.
  62.  
  63.  
  64.                         Examples of logged messages.
  65.                         ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  66.  
  67. Note: Some of the first ones might have changed slightly.
  68.  
  69. 04.09.97 17:11:29 qmail-smtpd MAIL FROM: syntax check failed (erizo) -> (rask@k4315.kampsax.dtu.dk) [192.38.212.1] (HELO carlsberg.kampsax.dtu.dk)
  70. 09.09.97 22:59:21 qmail-smtpd Relayclient check failed (rask@ingemann.lambertsen.dk) -> (rask@kampsax.dtu.dk) [unknown] (HELO localhost)
  71. 09.09.97 23:50:50 qmail-smtpd Bad RCPT TO: check failed (rask@kampsax.k-net.dk) -> (findesikke@k4315.kampsax.dtu.dk) [unknown] (HELO localhost)
  72. 10.09.97 21:43:47 qmail-smtpd Connection to 130.225.73.110 timed out.
  73. 01.10.97 20:16:47 qmail-smtpd (temporary) MAIL FROM: DNS check failed (samba@samba.anu.edu.au) -> () [192.38.212.1] (HELO carlsberg.kampsax.dtu.dk)
  74. 06.10.97 09:30:30 qmail-smtpd MAIL FROM: DNS check failed (56457945@01890.com) -> () [192.38.212.1] (HELO carlsberg.kampsax.dtu.dk)
  75. 06.10.97 15:02:48 qmail-smtpd Bad MAIL FROM: check failed (cag1465@onestopshop.net) -> () [192.38.212.1] (HELO carlsberg.kampsax.dtu.dk)
  76. 07.10.97 16:51:54 qmail-smtpd Received: from k4315.kampsax.dtu.dk (HELO localhost)
  77. 07.10.97 22:59:53 qmail-smtpd Received: from unknown (HELO nevald.k-net.dk)
  78.